<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>用户信息修改</title>
</head>
<body>
<!--信息修改Form表单-->
<div class="box box-warning">
    <div class="box-header with-border">
        <b class="customer-title">用户信息修改</b>
    </div>
    <form id="form-myinfo" class="form-horizontal">
        <div class="box-body">
            <div class="form-group">
                <label for="loginName" class="col-sm-2 control-label">登录账号</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" id="loginName" name="loginName" placeholder="登录账号" readonly>
                    <small>该信息不可修改</small>
                </div>
            </div>
            <div class="form-group">
                <label for="userName" class="col-sm-2 control-label">用户姓名</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" id="userName" name="userName"
                           placeholder="用户姓名">
                    <small>请如实填写，以便于信息审核</small>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">性别</label>
                <div class="col-sm-4">
                    <label>
                        <input type="radio" name="mySex" value="男" class="minimal"> 男
                    </label>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <label>
                        <input type="radio" name="mySex" value="女" class="minimal"> 女
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label for="userMobile" class="col-sm-2 control-label">联系电话</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" id="userMobile" name="userMobile"
                           placeholder="联系电话">
                    <small>请如实填写，以便于联系</small>
                </div>
            </div>
            <div class="form-group">
                <label for="userEmail" class="col-sm-2 control-label">电子邮件</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" id="userEmail" name="userEmail"
                           placeholder="电子邮件">
                    <small>请如实填写，以便于联系</small>
                </div>
            </div>
            <div class="form-group">
                <label for="userRemarks" class="col-sm-2 control-label">备注信息</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" id="userRemarks" name="userRemarks"
                           placeholder="备注信息">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">用户头像</label>
                <div class="col-sm-4">
                    <div class="pull-left image">
                        <img id="myPhoto" src="../images/default_male.png" class="img-circle" width="60px"
                             alt="用户头像">
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-4">
                    <button type="button" class="btn btn-info btn-sm btn-flat" onclick="$.openImageUpload()"><i
                            class="fa fa-upload"></i> 上传图像
                    </button>
                    <br/>
                    <small>建议上传200&times;200像素左右的正方形图像，上传完成后点击左下角“保存”按钮，方可更换头像</small>
                </div>
            </div>
            <input type="hidden" id="userId" name="userId"/>
            <input type="hidden" id="userSex" name="userSex"/>
            <input type="hidden" id="userIcon" name="userIcon"/>
        </div>
        <div class="box-footer">
            <button type="submit" class="btn btn-primary pull-left btn-flat"><i class="fa fa-save"></i> 保存
            </button>
        </div>
    </form>
</div>
<!--图像上传Modal-->
<div id="modal-upload-image" class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"
                        onclick="$.closeImageUpload()">
                    <span aria-hidden="true">&times;</span></button>
                <b class="customer-title">图像上传</b>
            </div>
            <div class="modal-body row">
                <div id="container" class="col-sm-12">
                    <a id="selectfiles" href="#" class='btn btn-info btn-sm btn-flat'><i
                            class="fa fa-photo"></i> 选择图像</a>
                    <a id="postfiles" href="#" class='btn btn-success btn-sm btn-flat'><i
                            class="fa fa-send"></i> 开始上传</a>
                    <div id="ossfile" class="col-sm-12" style="margin-top:15px;">
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning pull-left btn-sm btn-flat" onclick="$.closeImageUpload()">
                    <i class="fa fa-close"></i> 取消
                </button>
                <button type="button" class="btn btn-primary btn-sm btn-flat" onclick="$.getImageInfo()">
                    <i class="fa fa-check"></i> 完成
                </button>
            </div>
        </div>
    </div>
</div>
<!--阿里云WEB直传-->
<script type="text/javascript"
        src="../plugins/oss-h5-upload-js-direct/lib/crypto1/crypto/crypto.js"></script>
<script type="text/javascript"
        src="../plugins/oss-h5-upload-js-direct/lib/crypto1/hmac/hmac.js"></script>
<script type="text/javascript"
        src="../plugins/oss-h5-upload-js-direct/lib/crypto1/sha1/sha1.js"></script>
<script type="text/javascript"
        src="../plugins/oss-h5-upload-js-direct/lib/base64.js"></script>
<script type="text/javascript"
        src="../plugins/oss-h5-upload-js-direct/lib/plupload-2.1.2/js/plupload.full.min.js"></script>
<script src="../plugins/oss-h5-upload-js-direct/upload.js"></script>
<script type="text/javascript" src="myinfo.js"></script>
</body>
</html>
